package com.guodi.common.utils;

import com.guodi.core.tool.utils.DigestUtil;

import java.security.NoSuchAlgorithmException;
import java.util.UUID;

public class UuidUtil {

    public UuidUtil() {
    }

    public static String get32UUID() {
        String uuid = UUID.randomUUID().toString().trim().replaceAll("-", "");
        return uuid;
    }

    public static void main(String[] args) throws NoSuchAlgorithmException {
        System.out.println(MDUtil.getMessageDigest("123".getBytes(),"md5"));
        System.out.println(DigestUtil.hex("202cb962ac59075b964b07152d234b70"));
    }
}